//
//  KFDAlarmRingtoneSettings.m
//  KFD
//
//  Created by Lucky Luke on 8/2/15.
//  Copyright (c) 2015 kfd. All rights reserved.
//

#import "KFDAlarmRingtoneSettings.h"

@implementation KFDAlarmRingtoneSettings

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    if (self=[super initWithDictionary:dictionary]) {
        NSString* up_sound=dictionary[@"up_sound"];
        NSString* down_sound=dictionary[@"down_sound"];
        NSString* shock=dictionary[@"shock"];
        NSString* istime=dictionary[@"istime"];
        self.up_sound=[up_sound isEqualToString:@"1"]?NO:YES;
        self.down_sound=[down_sound isEqualToString:@"1"]?NO:YES;
        self.shock=shock.boolValue;
        self.istime=istime.boolValue;
    }
    return self;
}

@end
